from dataclasses import dataclass
from datetime import datetime


@dataclass
class AntMonitorStockInfo:
    stock_code: str  # 股票代码
    stock_plates: str  # 股票分类
    stock_current_number: int  # 当前持股数
    stock_max_number: int  # 最大持股数
    stock_advice_number: int  # 建议持股数
    monitor_origin_price: float  # 原始价格
    monitor_income_ratio: float  # 盈利比例
    monitor_target_ratio: float  # 目标比例
    monitor_stop_ratio: float  # 止损比例
    stock_status: int  # 股票状态
    stock_category: int  # 股票分类
    stock_tag: str  # 打标标签
    other_info: str  # 其他信息
    last_cal_date: datetime  # 最近计算日期
    monitor_income_money: float = 0  # 盈利金额
    monitor_current_price: float = 0  # 当前价格
    stock_final_point: int = 0  # 积分
    stock_focus_level: int = 0  # 关注级别
    stock_risk_level: int = 0  # 风险级别
    is_update: bool = False  # 是否需要更新
    stock_name: str = ""  # 股票名称
    stock_next_advice: str = ""  # 下一步建议
    month_up_day: int = 0  # 30交易日内上涨天数
    week_up_day: int = 0  # 本周上涨天数
